package com.company.project.modular.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.company.project.modular.system.service.IPurchaseService;
import com.company.project.modular.system.dao.PurchaseMapper;
import com.company.project.modular.system.model.Purchase;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@Service
@Transactional
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> implements IPurchaseService {

    /**
     * 查询最大的buyId
     */
    @Override
    public List<Purchase> findByMaxNumber(){
        return this.baseMapper.findByMaxNumber();
    }

    @Override
    public List<Map<String, Object>> list(String condition) {
        return this.baseMapper.list(condition);
    }


}
